require("dotenv").config();
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-solhint");

let accounts = [];
if (process.env.PRIVATE_KEY) {
  accounts = [process.env.PRIVATE_KEY];
}

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
  solidity: {
    version: "0.8.19",
    settings: {
      optimizer: {
        enabled: true,
        runs: 1000,
      },
    },
  },
  networks: {
    siberiumTestnet: {
      chainId: 111000,
      url: "https://rpc.test.siberium.net",
      accounts: accounts
    }
  },
  etherscan: {
    apiKey: {
      siberiumTestnet: "123",
    },
    customChains: [
      {
        network: "siberiumTestnet",
        chainId: 111000,
        urls: {
          apiURL: "https://test.siberium.net/api",
          browserURL: "https://test.siberium.net"
        }
      }
    ]
  }
};
